<?php

return [
    'mini_program'=>[
        'app_id' => env('MINI_PROGRAM_APP_ID',''),
        'secret' => env('MINI_PROGRAM_APP_SECRET',''),
        'response_type' => 'array',
        'log' => [
            'level' => env('MINI_PROGRAM_LOG_LEVEL','debug'),
            'file' => runtime_path().'/'.env('MINI_PROGRAM_LOG_FILE','wechat_mini_program.log'),
        ],
    ],
    'wechat_official'=>[
        'app_id' => 'wxf56a495664bcdc65',
        'secret' => '72a6eb1a25fcd84021290523d0fc29df',
        'response_type' => 'array',
    ],
    'wechat_pay'=>[
        // 必要配置
        'app_id'             => env('WECHAT_PAY_APP_ID',''),
        'mch_id'             => env('WECHAT_PAY_MCH_ID',''),
        'key'                => env('WECHAT_PAY_KEY',''),   // API v2 密钥 (注意: 是v2密钥 是v2密钥 是v2密钥)
        'cert_path'          => sprintf("%s/cert/%s/apiclient_cert.pem",app_path(),env('WECHAT_PAY_MCH_ID','')), // XXX: 绝对路径！！！！
        'key_path'           => sprintf("%s/cert/%s/apiclient_key.pem",app_path(),env('WECHAT_PAY_MCH_ID','')), // XXX: 绝对路径！！！！
    ],

];